<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:panelGroup 
	xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head >
    <h:outputStylesheet library="css" name="main.css" />
</h:head>
<h:body  >
	
	<h:form id="formListClientes" > 
		<div>
			    <p:dataTable var="cliente" 
			    			 value="#{clienteListarBean.listCliente}" 
			    			 widgetVar="clienteTable"
		                 	 emptyMessage="Sem informações" >
		 
		        <p:column filterBy="#{cliente.nome}" 
		        		  headerText="Nome" >
		            <f:facet name="filter">
		                <p:spinner onchange="PF('clienteTable').filter()" />
		            </f:facet>
		            <h:outputText value="#{cliente.nome}" />
		        </p:column>
		        
		    </p:dataTable>
		</div>
    
    </h:form>
</h:body>
</h:panelGroup>